package com.xyh.transaction.mapper;

import com.xyh.transaction.common.OrderStatus;
import com.xyh.transaction.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    void inset(Order order);

    Order findById(Integer orderId);

    void updateStatusById(OrderStatus orderStatus, Integer orderId);

    List<Order> findAll(Order order);

    void updateById(Order order);

    Integer findByAddressId(Integer id);

    Order findByOrderNo(String orderNo);
}
